/*=========================================================================

Program:   Virtual Surgery
Language:  C++
Date:      2009-11-14
Version:   0.1
Mail:		   nelfylee@gmail.com

Copyright (c) 2009 Nelfy Lee. All rights reserved.

=========================================================================*/
#ifndef _PROGRESS_BAR_H_
#define _PROGRESS_BAR_H_
#include "ui_ProgressBar.h"

#include <QProgressBar>
#include <QTimer>

class ProgressBar : public QWidget
{
	Q_OBJECT

public:
	ProgressBar(QWidget *parent) : QWidget(parent)
	{
		m_progressBar.setupUi(this);

		m_start = false;
	}

	~ProgressBar(){}

	void setStart()
	{
		m_progressBar.progressBar->setValue(0);
	}

	void setValue(int value)
	{
		m_progressBar.progressBar->setValue(value);
	}

	void setDone()
	{
		m_progressBar.progressBar->setValue(100);
	}

signals:
	void emitStopProgressing();
	void emitResumeProgressing();
	void emitPauseProgressing();


private:
	Ui::ProgressBar m_progressBar;
	bool m_start;
};



#endif

